home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 July / CHIP Turkiye Temmuz 2000.iso / prog / share / 27 / data.z / OEMSETUP.INF < prev    next >
INI File  |  1999-04-29  |  16KB  |  429 lines

  1. [Identification]
  2.     OptionType = NetService
  3. [Options]
  4.     ISPROTO
  5. [FileConstants]
  6. UtilityInf      = "UTILITY.INF"
  7. subroutineinf   = "SUBROUTN.INF"
  8. SoftwareType    = "service"
  9. Exit_Code       = 0
  10. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  11. Manufacturer    = "Intellimax"
  12. ProductMajorVersion     = "4"
  13. ProductMinorVersion     = "1"
  14. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  15. ProductSoftwareName     = "IsProto"
  16. ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\IsProto.sys"
  17.  
  18. NetRuleSoftwareType     = "IsProto IsProtoTransport IsProtoTransport"
  19. NetRuleSoftwareClass    = {"IsProtoTransport basic"}
  20. NetRuleSoftwareUse      = $(SoftwareType)" none none"
  21. NetRuleSoftwareBindForm = """IsProto"" yes yes simple"
  22. NetRuleSoftwareBindable = {"IsProtoTransport ndisDriver non non 100",+
  23.                            "IsProtoTransport ndisWanAdapterBH non non 100"}
  24.  
  25. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  26. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductSoftwareName)"\Parameters"
  27.  
  28. ;
  29. ; EventLog Message File
  30. ;
  31. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll ;"$(ProductSoftwareImagePath)
  32.  
  33. [GeneralConstants]
  34. from      = ""
  35. to        = ""
  36. ExitCodeOk     = 0
  37. ExitCodeCancel = 1
  38. ExitCodeFatal  = 2
  39. KeyNull         = ""
  40. MAXIMUM_ALLOWED   = 33554432
  41. RegistryErrorIndex = NO_ERROR
  42. KeyProduct      = ""
  43. KeyParameters   = ""
  44. TRUE            = 1
  45. FALSE           = 0
  46. NoTitle            = 0
  47. ExitState   = "Active"
  48. OldVersionExisted = $(FALSE)
  49. DriverPath      = $(!STF_NTPATH)\drivers
  50. [date]
  51.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  52. [Identify]
  53.     read-syms Identification
  54.     set Status     = STATUS_SUCCESSFUL
  55.     set Identifier = $(OptionType)
  56.     set Media      = #("Source Media Descriptions", 1, 1)
  57.     Return $(Status) $(Identifier) $(Media)
  58. [ReturnOptions]
  59.     set Status        = STATUS_FAILED
  60.     set OptionList     = {}
  61.     set OptionTextList = {}
  62.     set LanguageList = ^(LanguagesSupported, 1)
  63.     Ifcontains(i) $($0) in $(LanguageList)
  64.         goto returnoptions
  65.     else
  66.         set Status = STATUS_NOLANGUAGE
  67.         goto finish_ReturnOptions
  68.     endif
  69. returnoptions = +
  70.     set OptionList     = ^(Options, 1)
  71.     set OptionTextList = ^(OptionsText$($0), 1)
  72.     set Status         = STATUS_SUCCESSFUL
  73. finish_ReturnOptions = +
  74.     Return $(Status) $(OptionList) $(OptionTextList)
  75. [InstallOption]
  76.     set Option   = $($1)
  77.     set SrcDir   = $($2)
  78.     set AddCopy  = $($3)
  79.     set DoCopy   = $($4)
  80.     set DoConfig = $($5)
  81.     set LanguageList = ^(LanguagesSupported, 1)
  82.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  83.         Return STATUS_NOLANGUAGE
  84.     endif
  85.     Debug-Output "OEMNXPNB.INF: STF_CWDDIR is: "$(!STF_CWDDIR)
  86.     Debug-Output "OEMNXPNB.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  87.     set-subst LF = "\n"
  88.     read-syms GeneralConstants
  89.     read-syms FileConstants
  90.     read-syms DialogConstants$(!STF_LANGUAGE)
  91.     ifstr(i) $(!NTN_Origination) == "NCPA"
  92.         set Continue = $(OK)
  93.     endif
  94.     read-syms FileConstants$(!STF_LANGUAGE)
  95.     detect date
  96.     set-title  $(FunctionTitle)
  97.     set to   = Begin
  98.     set from = Begin
  99.     set CommonStatus = STATUS_SUCCESSFUL
  100.     EndWait
  101. Begin = +
  102.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  103.         set StartLabel = removeadapter
  104.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  105.         set StartLabel = UpgradeSoftware
  106.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  107.         set StartLabel = bindingadapter
  108.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  109.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  110.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  111.             Debug-Output "OEMNXPNB.INF: ShellCode error: cannot get an error string."
  112.             goto ShellCodeError
  113.         endif
  114.         set Error = $($R0)
  115.         set from = end
  116.         set to = end
  117.         goto nonfatalinfo
  118.     else
  119.         set StartLabel = installadapter
  120.     endif
  121.     set RadioDefault = 2
  122.     set RadioIn = {$(RadioDefault)}
  123.     set from = $(fatal)
  124.     set to = $(fatal)
  125.     goto $(StartLabel)
  126. installadapter = +
  127.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  128.     Ifstr $(KeyProduct) != $(KeyNull)
  129.         CloseRegKey $(KeyProduct)
  130.         Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  131.             $(ProductVersion)
  132.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  133.             Debug-Output "ShellCode error: cannot get an error string."
  134.             goto ShellCodeError
  135.         endif
  136.         goto end
  137.     endif
  138.     CloseRegKey $(KeyProduct)
  139.     goto installproduct
  140. installproduct = +
  141.     StartWait
  142.     ifint $(OldVersionExisted) == $(FALSE)
  143.         Ifstr(i) $(DoCopy) == "YES"
  144.            Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  145.            Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  146.                Goto ShellCodeError
  147.            Else-Ifstr(i) $($R0) == STATUS_FAILED
  148.                Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  149.                ifint $($ShellCode) != $(!SHELL_CODE_OK)
  150.                    goto ShellCodeError
  151.                endif
  152.                set Error = $($R0)
  153.                Goto fatal
  154.            Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  155.                Goto successful
  156.            Endif
  157.            Set SrcDir = $($R1)
  158.         Endif
  159.         install "Install-Option"
  160.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  161.            Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  162.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  163.                goto ShellCodeError
  164.            endif
  165.            set Error = $($R0)
  166.            goto fatal
  167.         endif
  168.         set OEM_ABANDON_ON = TRUE
  169.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  170.             $(ProductSoftwareName), +
  171.             $(ProductSoftwareName), +
  172.             $(ProductSoftwareDisplayName), $(STF_CONTEXTINFNAME), +
  173.             $(ProductSoftwareImagePath), "kernel", "TDI", {}, "",+
  174.             $(IoLogMsgDLL)
  175.         set RegistryErrorIndex = $($R0)
  176.         Ifstr(i) $(RegistryErrorIndex) !=  NO_ERROR
  177.             EndWait
  178.             CloseRegKey $($R1)
  179.             CloseRegKey $($R2)
  180.             CloseRegKey $($R3)
  181.             CloseRegKey $($R4)
  182.             CloseRegKey $($R5)
  183.             goto fatalRegistry
  184.         endif
  185.         Set SoftProductKey      = $($R1)
  186.         Set SoftNetRuleKey      = $($R2)
  187.         Set SoftServiceKey      = $($R3)
  188.         set KeyParameters       = $($R4)
  189.         Set SoftLinkageKey      = $($R5)
  190.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  191.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  192.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  193.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  194.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  195.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  196.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  197.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  198.         set RegistryErrorIndex = $($R0)
  199.         Ifstr $(RegistryErrorIndex) != NO_ERROR
  200.             CloseRegKey $(SoftProductKey)
  201.             CloseRegKey $(SoftNetRuleKey)
  202.             CloseRegKey $(SoftServiceKey)
  203.             CloseRegKey $(SoftLinkageKey)
  204.             CloseRegKey $(KeyParameters)
  205.             goto fatalRegistry
  206.         endif
  207.         set NewValueList = {{type    ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)}, +
  208.                             {use     ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  209.                             {class   ,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  210.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  211.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  212.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  213.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  214.         set RegistryErrorIndex = $($R0)
  215.         Ifstr $(RegistryErrorIndex) != NO_ERROR
  216.             CloseRegKey $(SoftProductKey)
  217.             CloseRegKey $(SoftNetRuleKey)
  218.             CloseRegKey $(SoftServiceKey)
  219.             CloseRegKey $(SoftLinkageKey)
  220.             CloseRegKey $(KeyParameters)
  221.             goto fatalRegistry
  222.         endif
  223. ;        Set NewValueList = {{NbProvider,$(NoTitle),$(!REG_VT_SZ),"_nb"}}
  224. ;        Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  225. ;        Ifstr $(RegistryErrorIndex) != NO_ERROR
  226. ;            CloseRegKey $(SoftProductKey)
  227. ;            CloseRegKey $(SoftNetRuleKey)
  228. ;            CloseRegKey $(SoftServiceKey)
  229. ;            CloseRegKey $(SoftLinkageKey)
  230. ;            goto fatalRegistry
  231. ;        endif
  232.         CloseRegKey $(SoftProductKey)
  233.         CloseRegKey $(SoftNetRuleKey)
  234.         CloseRegKey $(SoftServiceKey)
  235.         CloseRegKey $(SoftLinkageKey)
  236.     endif
  237.     goto writeparameters
  238. writeparameters = +
  239.     CloseRegKey $(KeyParameters)
  240.     EndWait
  241.     goto successful
  242. bindingadapter =+
  243.     set Error = "Binding: Sorry, not yet implemented."
  244.     goto fatal
  245. removeadapter = +
  246.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  247.         $(ProductSoftwareName)
  248.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  249.         Debug-Output "ShellCode error"
  250.         goto ShellCodeError
  251.     endif
  252.     set RegistryErrorIndex = $($R0)
  253.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  254.         goto fatalregistry
  255.     endif
  256.     goto end
  257. UpgradeSoftware = +
  258.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  259.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  260.         Ifstr $(KeyProduct) != $(KeyNull)
  261.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  262.             set Version = *($(VersionInfo), 4)
  263.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  264.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  265.                 Debug-Output "ShellCode error"
  266.                 goto ShellCodeError
  267.             endif
  268.             set !UG_Filename = $($R0)
  269.             ifstr(i) $(!UG_Filename) != ""
  270.                 install "Install-Update"
  271.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  272.                     goto fatal
  273.                 endif
  274.             endif
  275.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  276.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  277.             ifint $(Version) != $(ProductVersion)
  278.             endif
  279.             CloseRegKey $(KeyProduct)
  280.         else
  281.             goto fatalregistry
  282.         endif
  283.     endif
  284.     shell "registry.inf" ModifyServicesEntry "IsProto" $(!SERVICE_AUTO_START)
  285.     goto end
  286. successful = +
  287.     shell "registry.inf" ModifyServicesEntry "IsProto" $(!SERVICE_AUTO_START)
  288.     goto end
  289. warning = +
  290.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  291.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  292.         goto ShellCodeError
  293.     endif
  294.     ifstr(i) $($R1) == "OK"
  295.         goto $(to)
  296.     else-ifstr(i) $($R1) == "CANCEL"
  297.         goto $(from)
  298.     else
  299.         goto "end"
  300.     endif
  301. nonfatalinfo = +
  302.     Set CommonStatus = STATUS_USERCANCEL
  303.     Set Severity = STATUS
  304.     goto nonfatalmsg
  305. nonfatal = +
  306.     Set Severity = NONFATAL
  307.     goto nonfatalmsg
  308. nonfatalmsg = +
  309.     ifstr(i) $(Error) == ""
  310.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  311.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  312.             goto ShellCodeError
  313.         endif
  314.         set Error = $($R0)
  315.     endif
  316.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  317.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  318.         goto ShellCodeError
  319.     endif
  320.     ifstr(i) $($R1) == "OK"
  321.         goto $(from)
  322.     else
  323.         goto "end"
  324.     endif
  325. fatalregistry = +
  326.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  327.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  328.         goto ShellCodeError
  329.     endif
  330.     set Error = $($R0)
  331.     goto fatal
  332. fatal = +
  333.     ifstr(i) $(Error) == ""
  334.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  335.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  336.             goto ShellCodeError
  337.         endif
  338.         set Error = $($R0)
  339.     endif
  340.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  341.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  342.         goto ShellCodeError
  343.     endif
  344.     goto setfailed
  345. ShellCodeError = +
  346.     set DlgType      = "MessageBox"
  347.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  348.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  349.     set STF_MB_TYPE  = 1
  350.     set STF_MB_ICON  = 3
  351.     set STF_MB_DEF   = 1
  352.     ui start "Error Message"
  353.     goto setfailed
  354. setfailed = +
  355.     set CommonStatus = STATUS_FAILED
  356.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  357.         set OEM_ABANDON_ON = FALSE
  358.         goto removeadapter
  359.     endif
  360.     goto end
  361. end = +
  362.     goto term
  363. term = +
  364.     Return $(CommonStatus)
  365. [Install-Option]
  366.     set STF_VITAL = ""
  367.     ifstr(i) $(AddCopy) == "YES"
  368.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  369.     endif
  370.     ifstr(i) $(DoCopy) == "YES"
  371.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  372.        CopyFilesInCopyList
  373.     endif
  374.     ifstr(i) $(DoConfig) == "YES"
  375.     endif
  376.     Exit
  377. [Install-Update]
  378.    set STF_VITAL        = ""
  379.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  380.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  381.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  382.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  383.    CopyFilesInCopyList
  384.    exit
  385. [Source Media Descriptions]
  386.     1  = "Intellimax NT Service Disk"
  387. [ProductType]
  388. STF_PRODUCT  = Winnt
  389. STF_PLATFORM = I386
  390. [Files-Inf]
  391. 1,      oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
  392. [Files-ISPROTO]
  393. 1,IsProto.SYS , SIZE=999
  394. [LanguagesSupported]
  395.     ENG
  396. [OptionsTextENG]
  397.     NDISPERF     = "Intellimax NT Service"
  398. [FileConstantsENG]
  399. ProCaption   = "Windows NT Setup"
  400. ProCancel    = "Cancel"
  401. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  402.                "Are you sure you want to cancel copying files?"
  403. ProCancelCap = "Network Setup Message"
  404. ProText1     = "Copying:"
  405. ProText2     = "To:"
  406. FunctionTitle   = "Intellimax NT Service"
  407. ProductSoftwareDescription      = "Intellimax NT Service"
  408. ProductSoftwareDisplayName = "Intellimax NT Service"
  409. ProductSoftwareTitle    = "Intellimax NT Service"
  410. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  411. ShellCodeErrorText      = "Shell Code Error."
  412. [DialogConstantsENG]
  413. Help        = "&Help"
  414. Exit        = "Cancel"
  415. OK          = "OK"
  416. HelpContext = ""
  417. Continue    = "Continue"
  418. Cancel      = "Cancel"
  419. [FileDependentDlgENG]
  420. GroupLabel = "Optimization:"
  421. Radio1 = "&Minimize Memory Used"
  422. Radio2 = "&Balance"
  423. Radio3 = "M&aximize Throughput && Connections"
  424. DlgType = "Radio"
  425. DlgTemplate = "NBF"
  426. Caption = $(FunctionTitle)
  427. OptionsGreyed = {}
  428. HelpContext = $(!IDH_DB_OEMSETUP_INS)
  429.